package com.wei.li4.tabdemo;

import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.ViewGroup.LayoutParams;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TableRow;

public class rmStatisticsActivity extends Activity {


	public static final int WIDTH = 280;
	public static final int HEIGHT = 250;

	private ChartView view, view1, view2, view3, view4;
	private LinearLayout layout;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.statistic);
	layout = (LinearLayout) findViewById(R.id.configLayout);

	view = new ChartView(this, 50, "1", false, false);
	layout.addView(view, new LayoutParams(50, LayoutParams.MATCH_PARENT));

	view1 = new ChartView(this, 100, "2", true);
	layout.addView(view1, new LayoutParams(50, LayoutParams.MATCH_PARENT));

	view2 = new ChartView(this, 80, "3", true);
	layout.addView(view2, new LayoutParams(50, LayoutParams.MATCH_PARENT));

	view3 = new ChartView(this, 40, "4", true);
	layout.addView(view3, new LayoutParams(50, LayoutParams.MATCH_PARENT));

	view4 = new ChartView(this, 2, "5", true);
	layout.addView(view4, new LayoutParams(50, LayoutParams.MATCH_PARENT));
	}
}
